﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class1
{//任务 NPC:
    //送信   杀怪   采集
    class taskType:NPC
    {
        protected string tasktype;

        public string Tasktype
        {
            get { return this.tasktype; }
            set { this.tasktype = value; }
        }
        public taskType(string name, NPCType nPCType,string tasktype):base(name,nPCType)
        {
            this.tasktype = tasktype;

        }

        public override void speck()
        {
            
            Console.WriteLine("我叫："+this.name);
            Console.WriteLine("我是："+this.npcType+ "类型的");
            Console.WriteLine("我可以为你："+this.tasktype);
        }
    }
}
